package me.qixiaobo.dto;

import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.qixiaobo.config.JsonViewConfig;

/**
 * 书籍类
 *
 * @author xx on 2019/10/31
 */
@Data
public class Book {

    @JsonView({JsonViewConfig.DetailView.class})
    @ApiModelProperty(value = "书籍id", name = "bookId", dataType = "String")
    private String bookId;

    @JsonView({JsonViewConfig.DetailView.class})
    @ApiModelProperty(value = "书籍名称", name = "bookName", dataType = "String")
    private String bookName;

    @JsonView({JsonViewConfig.DetailView.class})
    @ApiModelProperty(value = "书籍数量", name = "bookCount", dataType = "int")
    private int bookCount;
}
